package com.bwie.kanjia.dao;

import com.bwie.kanjia.entity.ActEntity;
import com.bwie.kanjia.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 
 * 
 * @author ÕÔË«Ò¶
 * @email 1535715783@qq.com
 * @date 2022-03-07 20:38:40
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    List<OrderEntity> selectByUIdAndAId(@Param("actEntity") ActEntity actEntity,
                                        @Param("userId") Long userId);

    Integer selectByIds(@Param("id") String id, @Param("userId") Long userId, @Param("actId") Integer actId);
}
